<div class="panel panel-primary">
  <div class="panel-heading">局部变量</div>
  <div class="panel-body">
    <input type="text" #userName/>
    <p>{{userName.value}}</p>
    <div #box>123456</div>
    <button type="button" class="btn btn-default" (click)="abcUser(userName.value)">Button</button>
    <button type="button" class="btn btn-default" (click)="box.hide()">Button2</button>
  </div>
</div>